package com.stu.dao;

import com.stu.po.Major;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MajorMapper {
    Major majorInfo(@Param("majorId") Integer majorId, @Param("collegeId") Integer collegeId);

    Integer majorByName(@Param("majorName") String majorName, @Param("collegeName") String collegeName);

    Integer majorAdd(@Param("majorName") String majorName, @Param("collegeId") Integer collegeId);

    List<Major> majorList();
}
